import { prefixUT } from '@/services/question-short';
import request from '@/utils/request';
import { prefix } from '@/utils/utils';

const prefixU = prefix('question-short');

type getSelectOption = {
  /** 试卷id */
  paper_id: string;
};

export async function getShort(opt: getSelectOption) {
  return request<prefixUT['getShort']>(prefixU('getShort'), {
    method: 'POST',
    data: opt,
  });
}

export async function setShort(opt: Partial<request.SelectType>) {
  return request<prefixUT['updateShort']>(prefixU('updateShort'), {
    method: 'POST',
    data: opt,
  });
}
